var setting = require('./setting');
var mongoose = require('mongoose');
mongoose.connect('mongodb://'+setting.ip+"/"+setting.db);
var db = mongoose.connection;
module.exports={
    "bdCon":db,
    "mongoose":mongoose
}